package com.tcode.provider.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tcode.provider.entity.User;
import com.tcode.provider.mapper.UserMapper;
import com.tcode.provider.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author jobob
 * @since 2019-10-23
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IUserService {

    @Autowired
    private UserMapper userMapper;
    @Override
    public User getByName(String username) {
        User user=userMapper.getByName(username);
        return user;
    }

    @Override

    public int insertImg(String filePath,String name) {
        int i=userMapper.insertImg(filePath,name);
        return i;
    }
}
